{% extends "layout.html" %}

{% block content %}
    {% for flashMessage in message %}
        <p class="bg-danger" style="padding: 15px;">{{ flashMessage }}</p>
    {% endfor %}
    <div class="wrap">
        <h1 class="wp-heading-inline">添加/编辑书籍</h1>

        <form id="zj-form" action="admin.php?page=maosea0125_book&action=edit" method="post" enctype="multipart/form-data" >
            {{ form_row(form.id) }}
            {{ form_row(form.isbn) }}
            {{ form_row(form.name) }}
            {{ form_row(form.cover) }}
            {{ form_row(form.author) }}
            {{ form_row(form.publisher) }}
            {{ form_row(form.original_name) }}
            {{ form_row(form.translator) }}
            {{ form_row(form.publish_date) }}
            {{ form_row(form.page) }}
            {{ form_row(form.price) }}
            {{ form_row(form.series) }}
            {{ form_row(form.description) }}
            {{ form_row(form.author_description) }}
            {{ form_row(form.buylink) }}
            {{ form_row(form.douban_score) }}
            <button type="submit" class="btn btn-default">保存</button>
            <a class="btn btn-default" href="admin.php?page=maosea0125_book" role="button">返回</a>
        </form>
    </div>
{% endblock %}